﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using DataAccessTier;
using DTO;

namespace BusinessLogicTier
{
    public class NhaSanXuatBUG
    {
        NhaSanXuatDAO objNSX = new NhaSanXuatDAO();
        public DataTable GetNSX()
        {
            return objNSX.GetAllNhaSanXuat();
        }

        public bool kiemtranmannsx(string mansx)
        {
            return objNSX.kiemtratontai(mansx);
        }

        public bool Insert(NhaSanXuat nsx)
        {
            return objNSX.Insert(nsx);
        }

        public bool Delete(string mansx)
        {
            return objNSX.Delete(mansx);
        }

        public bool kiemtratontaiHH(string mansx)
        {
            return objNSX.kiemtratontaiHH(mansx);
        }

        public bool DeleteHH(string mansx)
        {
            return objNSX.DeleteHH(mansx);
        }

        public bool Update(NhaSanXuat nsx)
        {
            return objNSX.Update(nsx);
        }
    }
}
